<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class ProfileController extends MY_Controller {
	
	function __construct() {
		parent::__construct();
	}
	
	/**
	 * @Authorize()
	 */
	public function index() {
		$team = $this->shared_model->get_team_info($this->userdata['team_id']);
		
		$this->set_data('title', PAGE_TITLE);
		$this->set_data('description', PAGE_DESCRIPTION);		
		$this->set_data('players', $this->shared_model->get_all_players($this->userdata['team_id']));
		$this->set_data('team', $team[0]);
		
		$this->load_view('profile/index');
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */